<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.AddExternal" CodeFile="AddExternal.aspx.cs" %>

<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc3" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>AddExternal</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <asp:Panel ID="headerSection" runat="server">
                        <table class="Header">
                            <tr>
                                <td>
                                    <cc1:Header ID="header" runat="server"></cc1:Header>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc1:HumansSubModuleNavigation ID="humansSubModuleNavigation" runat="server" Visible="false" />
                                    <cc1:AnimalsSubModuleNavigation ID="animalsSubModuleNavigation" runat="server" Visible="false" />
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <uc1:ProtocolDetailHeader ID="protocolDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td>
                                    <cc3:BreadCrumb ID="breadCrumb" runat="server"></cc3:BreadCrumb>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <table>
                        <tr>
                            <td>
                                <cc3:PostbackGuard ID="postbackGuard" runat="server"></cc3:PostbackGuard>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <cc3:Annunciator ID="annunciator" runat="server"></cc3:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <cc3:SetFocus ID="setFocus" runat="server" FocusControl="lastName"></cc3:SetFocus>
                    <br />
                    <br />
                    <asp:Panel ID="addExternalQuestion" runat="server">
                        <table>
                            <tr>
                                <td>
                                    &nbsp;Do you need to add any people that do not belong to a Partners Institution
                                    that you did not find in the search results?<br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:RadioButtonList ID="addExternalAnswer" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="Yes">Yes</asp:ListItem>
                                        <asp:ListItem Value="No" Selected="True">No</asp:ListItem>
                                    </asp:RadioButtonList></td>
                            </tr>
                            <tr align="right">
                                <td>
                                    <asp:ImageButton ID="addCancel" CausesValidation="False" runat="server" ImageUrl="../Images/b_cancel.gif">
                                    </asp:ImageButton>&nbsp;<asp:ImageButton ID="addNext" CausesValidation="False" runat="server"
                                        ImageUrl="../Images/b_continue.gif"></asp:ImageButton></td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="addMoreQuestion" runat="server">
                        <table>
                            <tr>
                                <td>
                                    &nbsp;Do you need to staff another external person to the protocol?<br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:RadioButtonList ID="addMoreAnswer" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="Yes">Yes</asp:ListItem>
                                        <asp:ListItem Value="No" Selected="True">No</asp:ListItem>
                                    </asp:RadioButtonList></td>
                            </tr>
                            <tr align="right">
                                <td>
                                    <asp:ImageButton ID="moreCancel" CausesValidation="False" runat="server" ImageUrl="../Images/b_cancel.gif">
                                    </asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="moreNext" CausesValidation="False" runat="server" ImageUrl="../Images/b_continue.gif">
                                    </asp:ImageButton></td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="addExternalPerson" runat="server">
                        <table width="100%" style="background-color:white">
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td align="right" style="width:30%">
                                                &nbsp;<span style="white-space:nowrap">Please provide information 
            for the external person you wish to add.</span>
                                                <br />
                                                The required fields are denoted with an asterisk.<br />
                                                <br />
                                                <asp:ValidationSummary ID="validationSummary" runat="server"></asp:ValidationSummary>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                *Last Name:&nbsp;<asp:TextBox ID="lastName" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:RequiredFieldValidator ID="firstNameValidator" runat="server" ErrorMessage="First Name is required"
                                                    ControlToValidate="firstName" Display="None"></asp:RequiredFieldValidator>*First
                                                Name:&nbsp;<asp:TextBox ID="firstName" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                Middle Name:&nbsp;<asp:TextBox ID="middleName" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                *Address 1:&nbsp;<asp:TextBox ID="address1" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="lastNameValidator" runat="server" ErrorMessage="Last Name is required"
                                                    ControlToValidate="lastName" Display="None"></asp:RequiredFieldValidator><asp:RequiredFieldValidator
                                                        ID="addressValidator" runat="server" ErrorMessage="Address is required" ControlToValidate="address1"
                                                        Display="None"></asp:RequiredFieldValidator></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                Address 2:&nbsp;<asp:TextBox ID="address2" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                *City:&nbsp;<asp:TextBox ID="city" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                    ID="cityValidator" runat="server" ErrorMessage="City is required" ControlToValidate="city"
                                                    Display="None"></asp:RequiredFieldValidator></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                *State:&nbsp;<asp:DropDownList ID="state" runat="server">
                                                </asp:DropDownList><asp:RequiredFieldValidator ID="stateValidator" runat="server"
                                                    ErrorMessage="State is required" ControlToValidate="state" Display="None"></asp:RequiredFieldValidator></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                *Zip:&nbsp;<asp:TextBox ID="zip" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                                    ID="zipValidator" runat="server" ErrorMessage="Zip Code is required" ControlToValidate="zip"
                                                    Display="None"></asp:RequiredFieldValidator>
                                                <asp:RegularExpressionValidator ID="zipRegularExpressionValidator" runat="server"
                                                    ErrorMessage="Please provide a valid zip code" ControlToValidate="zip" Display="None"
                                                    ValidationExpression="^\d{5}(-\d{4})?$"></asp:RegularExpressionValidator></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <cc3:TelephoneNumber ID="telephone" runat="server" Required="true"></cc3:TelephoneNumber>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <cc3:TelephoneNumber ID="fax" runat="server" Required="false" Prompt="Fax Number:"></cc3:TelephoneNumber>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <cc3:EmailAddress ID="email" runat="server" Required="true"></cc3:EmailAddress>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                Degree:&nbsp;<asp:DropDownList ID="degree" runat="server">
                                                </asp:DropDownList></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:RequiredFieldValidator ID="orgValidator" runat="server" ErrorMessage="Institutional Affiliation is required"
                                                    ControlToValidate="institution" Display="None"></asp:RequiredFieldValidator>*Institutional
                                                Affiliation:&nbsp;<asp:TextBox ID="institution" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                Department:&nbsp;<asp:TextBox ID="department" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                Institution Title:&nbsp;<asp:TextBox ID="institutionTitle" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <br />
                                                <asp:ImageButton ID="formCancel" CausesValidation="False" runat="server" ImageUrl="../Images/b_cancel.gif">
                                                </asp:ImageButton>&nbsp; &nbsp;<asp:ImageButton ID="formSave" runat="server" ImageUrl="../Images/b_continue.gif">
                                                </asp:ImageButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="width:70%">
                                    &nbsp;<br />
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
